package com.aiwhose.aiwhosecore.bean.security;

import com.aiwhose.aiwhosecore.bean.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import org.apache.http.impl.cookie.IgnoreSpec;
import org.springframework.data.repository.query.parser.Part;

import java.io.Serial;

/**
 * 短信 实体类。
 *
 * @author 田国刚
 * @since 1.0.1
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "短信")
@Table(value = "SHORT_MESSAGE")
public class ShortMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @Schema(description = "")
    private String id;

    /**
     * 服务商
     */
    @Schema(description = "服务商")
    private String supplier;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String phone;

    /**
     * 内容
     */
    @Schema(description = "内容")
    private String content;

    /**
     * 返回结果
     */
    @Schema(description = "返回结果")
    private String resultComment;

    /**
     * 发送状态 0 成功 1 失败
     */
    @Schema(description = "发送状态 0 成功 1 失败")
    private Boolean sendState;

    /**
     * 发送时间
     */
    @Schema(description = "发送时间")
    private LocalDateTime createTime;

    @Column(ignore = true)
    private String imgCode;


}
